<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib uri="http://www.ecside.org" prefix="ec"%>
<jsp:useBean id="pageBean" scope="request" class="com.agileai.hotweb.domain.PageBean"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>流程定义列表</title>
<%@include file="/jsp/inc/resource.inc.jsp"%>
<script language="javascript">
function selectRequest(idValue,nameValue){
	ele('WFD_ID').value= idValue;
	ele('dataSourceCode').value= nameValue;
	doSubmit({actionType:"select"})
}
</script>
</head>
<body>
<form action="<%=pageBean.getHandlerURL()%>" name="form1" id="form1" method="post">
<%@include file="/jsp/inc/message.inc.jsp"%>
<table class="dataTable" cellspacing="0"  cellpadding="0">
<thead id="ec_table_head">
  <tr>
    <th width="40" align="center" nowrap="nowrap">序号</th>
    <th width="80" align="center" nowrap="nowrap">名称</th>
    <th width="50%" align="center" nowrap="nowrap">数据URL</th>
    <th width="80" align="center" nowrap >操作</th>
  </tr>
</thead>
<%
int listCount = pageBean.listSize();
for (int i=0;i < listCount;i++){
%>
  <tr onclick="selectRow(this,{WFD_ID:'<%=pageBean.inputValue(i,"WFD_ID")%>'})" oncontextmenu="selectRow(this,{WFD_ID:'<%=pageBean.inputValue(i,"WFD_ID")%>'});refreshConextmenu()" onDblClick="selectRequest('<%=pageBean.inputValue(i,"WFD_ID")%>','<%=pageBean.labelValue(i,"WFD_ALIAS")%>')">
    <td height="24" align="center"><%=i+1%></td>
    <td height="24">&nbsp;<%=pageBean.labelValue(i,"WFD_ALIAS")%></td>
    <td height="24">&nbsp;<%=pageBean.labelValue(i,"WFD_URL")%></td>
    <td height="24" style="text-align:center" nowrap><input type="button" class="formbutton" name="button5" id="button5" value="选择" onClick="selectRequest('<%=pageBean.inputValue(i,"WFD_ID")%>','<%=pageBean.labelValue(i,"WFD_NAME")%>')" /></td>
  </tr>
<%}%>  
</table>
<input type="hidden" name="WFD_ID" id="WFD_ID" value="" />
<input type="hidden" name="dataSourceCode" id="dataSourceCode" value="" />
<input type="hidden" name="actionType" id="actionType" />
<script language="JavaScript">
setRsIdTag('WFD_ID');
</script>
<div style="text-align:center">
<input type="button" class="formbutton" name="button" id="button" value="返回" onclick="goToBack()" />
</div>
</form>
</body>
</html>
<%@include file="/jsp/inc/scripts.inc.jsp"%>